﻿using Fabao.Shared.Domain;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Material.Domain.Entities
{
    /// <summary>
    /// 物料表
    /// </summary>
    [SugarTable("tz_material")]
    public class TzMaterial: AggregateRootEntitySnow
    {
        /// <summary>
        /// 物料名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string supplier { get; set; }
        public string modelType { get; set; }
        public string specifications { get; set; }
        /// <summary>
        /// 编号，必须唯一
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 二维码
        /// </summary>
        public string qrCode { get; set; }
        public int createUser { get; set; }
        public string createUserName { get; set; }
        public DateTime createTime { get; set; }
        public TzMaterial() 
        {
            this.createTime = DateTime.Now;
        }
    }
}
